package com.binary.coder.gift.core.interfaces.sys.dto.req;

import com.binary.coder.gift.core.common.bean.MapDict;
import com.binary.coder.gift.core.common.bean.PageParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;

@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class SysApiSqlAdd extends PageParam {

    @ApiModelProperty("分类")
    private String type;

    @ApiModelProperty("编码")
    @NotBlank(message = "编码不能为空")
    private String code;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("是否分页接口")
    private int page;

    @ApiModelProperty("查询的sql语句")
    @NotBlank(message = "Sql不能为空")
    private String selectSql;

    @ApiModelProperty("流程描述")
    private String remark;

    @ApiModelProperty("结果显示别名")
    private MapDict cellAlias;
}
